package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloudkinto.entity.OrderBackDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.extentity.OrderBackPageDto;
import com.cloudkinto.extentity.ReplaceBackCodeSkuDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author zhangyy
 * @since 2020-08-05
 */
@Mapper
public interface OrderBackDao extends BaseMapper<OrderBackDo> {

    List<OrderBackPageDto> listPage(IPage<OrderBackPageDto> page, @Param("map") Map<String, String> map);

    List<OrderBackPageDto> listPage(@Param("map") Map<String, String> map);

    List<ReplaceBackCodeSkuDto> getBackCodeForReplace(Long companyId);

}
